GskRoundedRect: Fix GSK_ROUNDED_RECT_INIT macro
authorTimm Bäder <mail@baedert.org>
Sat, 27 Jan 2018 11:11:49 +0000 (12:11 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 27 Jan 2018 11:11:49 +0000 (12:11 +0100)
GskRoundedRect does not have a .rect member, it's 'bounds'. Also,
properly initialize all fields, i.e. all the corners.

gsk/gskroundedrect.h

index d12156cb24ec61d43a8d7ec5f34d175a41e66f0f..3abc3d9877ce7c2cb5b688917ea67ab4474b6adc 100644 (file)
@@ -35,10 +35,17 @@ G_BEGIN_DECLS
  * @_h: the height
  *
  * Initializes a #GskRoundedRect when declaring it.
+ * All corner sizes will be initialized to 0.
  *
  * Since: 3.90
  */
-#define GSK_ROUNDED_RECT_INIT(_x,_y,_w,_h)       (GskRoundedRect) { .rect = GRAPHENE_RECT_INIT(_x,_y,_w,_h) }
+#define GSK_ROUNDED_RECT_INIT(_x,_y,_w,_h)       (GskRoundedRect) { .bounds = GRAPHENE_RECT_INIT(_x,_y,_w,_h), \
+                                                                    .corner = { \
+                                                                       GRAPHENE_SIZE_INIT(0, 0),\
+                                                                       GRAPHENE_SIZE_INIT(0, 0),\
+                                                                       GRAPHENE_SIZE_INIT(0, 0),\
+                                                                       GRAPHENE_SIZE_INIT(0, 0),\
+                                                                    }}
 
 /**
  * GskRoundedRect: